//
//  DefineConstant.h
//  QuickCure
//
//  Created by 马文星 on 16/4/25.
//  Copyright © 2016年 Demos. All rights reserved.
//  Define常用的

#ifndef DefineConstant_h
#define DefineConstant_h

//临时定义的一些常量
//例如：微博的一次刷新数量
//#define kRefreshMaxCount 20


#define kThemeColor [UIColor colorWithRed:53/255.0 green:191/255.0 blue:180/255.0 alpha:1]


//**************************************************************
///AppDelegate
#define MLAppDelegate  (AppDelegate *)[UIApplication sharedApplication].delegate

///屏幕宽高
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

///颜色
#define RGBCOLOR(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]
#define RGBHexColor(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16)) / 255.0 green:((float)((hexValue & 0xFF00) >> 8)) / 255.0 blue:((float)(hexValue & 0xFF)) / 255.0 alpha:1.0] //RGBHexColor(0xefefef)

#define CLEAR_COLOR [UIColor clearColor]
#define DEEPBLUE_COLOR [UIColor colorWithHex:0x44b2f0]
#define BLUE_COLOR [UIColor colorWithHex:0x23a7f1]
#define WHITE_COLOR [UIColor colorWithHex:0xffffff]
#define LIGHTBLUE_COLOR [UIColor colorWithHex:0xa8c7e0]
#define GRAY_COLOR [UIColor colorWithHex:0xf6f8fa]
#define ORANGE_COLOR [UIColor colorWithHex:0xf39800]
#define RED_COLOR [UIColor colorWithHex:0xf0311d]
#define DEEPBLACK_COLOR [UIColor colorWithHex:0x252525]
#define LIGHTBLACK_COLOR [UIColor colorWithHex:0x333333]
#define LIGHTBLACK_COLOR666 [UIColor colorWithHex:0x666666]
#define LIGHTBLACK_COLOR999 [UIColor colorWithHex:0x999999]

//字体
#define BOLDFONT(F) [UIFont boldSystemFontOfSize:F]
#define FONT(F)     [UIFont systemFontOfSize:F]

///打印Frame
#define LogFrame(frame) loggerImpt(@"frame[X=%.1f,Y=%.1f,W=%.1f,H=%.1f",frame.origin.x,frame.origin.y,frame.size.width,frame.size.height);
///打印Point
#define LogPoint(point) loggerImpt(@"Point[X=%.1f,Y=%.1f]",point.x,point.y);

///配置步骤二(1-4)
#define XCODE_COLORS_ESCAPE @"\033["
#define XCODE_COLORS_RESET_FG XCODE_COLORS_ESCAPE @"fg;" // Clear any foreground color
#define XCODE_COLORS_RESET_BG XCODE_COLORS_ESCAPE @"bg;" // Clear any background color
#define XCODE_COLORS_RESET XCODE_COLORS_ESCAPE @";" // Clear any foreground or background color

//配置步骤三
///黑色 正常信息
#define loggerInfo(frmt, ...) NSLog((XCODE_COLORS_ESCAPE @"fg0,0,0;" frmt XCODE_COLORS_RESET), ##__VA_ARGS__);
///蓝色 重要信息
#define loggerImpt(frmt, ...) NSLog((XCODE_COLORS_ESCAPE @"fg0,0,255;" frmt XCODE_COLORS_RESET), ##__VA_ARGS__);
///橙色 警告信息
#define loggerWarn(frmt, ...) NSLog((XCODE_COLORS_ESCAPE @"fg255,127,0;" frmt XCODE_COLORS_RESET), ##__VA_ARGS__);
///红色 错误信息
#define loggerError(frmt, ...) NSLog((XCODE_COLORS_ESCAPE @"fg255,0,0;" @"(%d)"  frmt XCODE_COLORS_RESET),__LINE__, ##__VA_ARGS__);


///系统版本号
#define iOS_SYSTEM   [[[UIDevice currentDevice] systemName] doubleValue]




#endif /* DefineConstant_h */
